(function($) {
	var dates = $('.date');
	dates.each(function(i, date) {
		date.addEventListener('tap', function() {
			var options = {
				"type": "date"
			};
			var picker = new $.DtPicker(options);
			picker.show(function(rs) {
				date.value=rs.text;
				picker.dispose();
			});
		}, false);
	});
})(mui);